#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
reload(sys)
sys.setdefaultencoding('utf-8')

def encrypt(password):
    ret = ""
    str = password
    # temp = ""
    #for i=0; i<len(str); i++:
    #    temp[i] = ord(str[i]) ^ 0xff
    #    ret += unichr(temp[i])
    for each in str:
        print each
        # print ord(each)^0xff
        ret += unichr(ord(each)^0xff)
    #print ret
    return ret

if __name__ == '__main__':
    while True:
        password = raw_input("password: ")
        encrypt(password)
